Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEAMVALIDATE-22, extend the helloworld example #15

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

maschmid
Copy link
Contributor

SEAMVALIDATE-22

extend the helloworld example to demonstrate

  1. validation of a method return value
    This commit splits the "name" field into "first name", "middle name" and "last name", adds a composeName method and add a @SiZe validator to its return value ("whole name too long")
  2. DI for constraint validators
    Adds a @notbanned validator, checks for "banned names". The list of "banned names" is injected into the validator.

Feel free to scrap this commit or reuse it if you have better ideas how to demonstrate these features in the example...

Cheers!

…dation of a method return value, 2) DI for constraint validators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant